package experiment06;

public class Main {
    public static void main(String[] args) {
        innerclass i = new innerclass() {
            @Override
            public void print() {
                System.out.println("匿名内部类");
            }
        };
        i.print();
        innerclass aInnerclass = new innerclass() {
            @Override
            public void print() {
                System.out.println("匿名内部类2");
            }
        };
        aInnerclass.print();
        i.print();
    }
}
